package net.tngou.crawler.map;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import net.tngou.c4j.util.HttpUtil;

public class GpsspgApi {

	/**
	 * http://www.gpsspg.com/api/convert/latlng/
	 * @param args
	 */
	public static void main(String[] args) {
		String url="http://api.gpsspg.com/convert/coord";
		Map<String, String> data = new HashMap<>();
		data.put("oid", "7664");
		data.put("key", "55E0634D2902F5167EE978DD6B2CAFC5");
		data.put("from", "3");
		data.put("to", "0");
		data.put("latlng", "33.642060,115.189840");
		String jsons = HttpUtil.getString(url, data);
		JSONObject json = JSON.parseObject(jsons);
		System.err.println(json);
	}
}
